package com.qingfeng.core.dao.qingfeng;

import com.qingfeng.core.entity.qingfeng.FengbiDetail;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * @description:
 * @author:LWY
 * @date: 2017/11/23 17:06
 * @modified:
 */
public interface FengbiDetailDao extends MongoRepository<FengbiDetail, String> {

    List<FengbiDetail> findByModule(int module);

    Page<FengbiDetail> findByModule(String user_id, Pageable pageable);

    Page<FengbiDetail> findByUserOrderByCreateTimeDesc(String user_id, Pageable pageable);

    Page<FengbiDetail> findByCreateTime(String user_id, Pageable pageable);

}
